import http from '@/api'

// 登陆
export const loginApi  = (data) => http.post('/main/auth/login', data)

// 验证码
export const codeApi  = (data) => http.post('/main/auth/phone', data)

// 获取用户信息
export const userInfoApi  = (data) => http.get('/zh/ption/user')

// 更新用户信息
export const putUserInfoApi  = (data) => http.post('/zh/ption/user', data)

// 获取关注
export const getfollowApi  = (data) => http.get('/zh/ption/getfollow')

// 获取我的粉丝
export const fansApi  = (data) => http.get('/zh/ption/getfans')

// 关注
export const followApi  = (data) => http.post('/zh/ption/follow', data)

// 收藏
export const collectionApi = (data) => http.post('/zh/ption/collection', data)